package visitor;

/**
 * 具体访问者A类
 *
 * @author zhang he qiang
 */
public class ConcreteVisitorA  implements Visitor{
    public void visit(ConcreteElementA element)
    {
        System.out.println("具体访问者A访问-->"+element.operationA());
    }
    public void visit(ConcreteElementB element)
    {
        System.out.println("具体访问者A访问-->"+element.operationB());
    }
}
